#ifndef __UDP_DEF_H
#define __UDP_DEF_H

#include "sdk_ifs_udk_cfg.h"

/*必须保证216字节*/
typedef struct{
	uint16_t startup_flag;
	uint16_t frame_interval;
	uint32_t led_timeout;

	uint16_t sleep_time1;
	uint16_t sleep_time2;
	
	uint8_t  rsvxx;
	uint8_t  chirp_sum_cnt;
	uint8_t  trigger_range_threshold;
	uint8_t  dbscan_mean_buffer_num;
	
//	uint8_t  dbscan_minPts;
	uint8_t  dbscan_epsRIdx;
	uint8_t  dbscan_epsVIdx;
	uint8_t  dbscan_epsSinPhiIdx;
	
  uint16_t range_Set_outone;//gpio5
  uint16_t range_Set_outtwo;//gpio2 
  
  uint8_t one_noflag;
  uint8_t two_noflag;
  uint8_t cnt_flag; 
  uint8_t one_cnt_flag; 
	uint16_t last_index_cnt;
	uint16_t min_index_range;
	uint16_t penultimate_index_range;
	
	struct{
		uint16_t value[64];
	}divFac_temp;
	uint8_t  rsv[46];
	uint8_t  version[8]; //unused
}PARAM_RSV;

typedef struct{
	PARAM_ANA_VENUS paraANA;
	PARAM_DATAPREP  paraDataPrep;
	PARAM_ALGORITHM paraALG;
	PARAM_FUNC      paraFunc;
	PARAM_RSV       paraRSV;
}UDP_2K_t;

extern const UDP_2K_t UDP_2k_Const;

#endif

